package com.pingan.haofang.searchcloud.monitor.constants;

import com.pingan.haofang.framework.common.functional.lang.control.base.annotation.Value;

/**
 * 节点状态
 * @author EX-LIUXIANWEN001
 * @date 2018/10/24
 * @since 1.0.0
 */
public enum NodeStatus {
    VALID(0, "有效"),

    INVALID(1, "无效");


    public final int value;
    public final String desc;

    private NodeStatus(int value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    @Value
    public int getValue() {
        return value;
    }

    public String getDesc() {
        return desc;
    }


}
